package org.com.liurz.iresources.activiti.process.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;

/**
 * @author liurz
 * @version V1.0
 * @Package org.com.liurz.iresources.activiti.process.model
 * @date 2021/9/30 20:42
 * @Copyright © 2020-2028
 */
@Data
@Entity
@Table(name = "t_mysql")
public class MyProcess {
	@Id
	private int id;
	@Column(name = "process_name")
	private String processName; // 流程名称
	@Column(name = "process_id")
	private String processId; // 流程id 唯一
	@Column(name = "process_file_name")
	private String pbmnFileName; // 流程pbmn文件名称 唯一
	@Column(name = "status")
	private String status; // 流程状态：草稿1、发布2
	@Column(name = "deploy_id")
	private String deploymentId; // 发布后的id
	@Column(name = "create_time")
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime; // 流程创建时间
	@Column(name = "update_time")
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime; // 流程修改时间

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getProcessName() {
		return processName;
	}

	public void setProcessName(String processName) {
		this.processName = processName;
	}

	public String getProcessId() {
		return processId;
	}

	public void setProcessId(String processId) {
		this.processId = processId;
	}

	public String getPbmnFileName() {
		return pbmnFileName;
	}

	public void setPbmnFileName(String pbmnFileName) {
		this.pbmnFileName = pbmnFileName;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getDeploymentId() {
		return deploymentId;
	}

	public void setDeploymentId(String deploymentId) {
		this.deploymentId = deploymentId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}
